package com.recsmile.sgs.core;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by hanyuanliang on 16/8/24.
 */
public class Room {

    protected ConcurrentHashMap<Integer, Player> players = new ConcurrentHashMap<Integer, Player>();
    protected int roomId;

    public  void add(Player player){
        players.put(player.getId(), player);
    }

    public ConcurrentHashMap<Integer, Player> getPlayers() {
        return players;
    }

    public void setPlayers(ConcurrentHashMap<Integer, Player> players) {
        this.players = players;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }
}
